package com.zhouheng.springbootdesignpattern.singletonpattern;

public class Client {

    public static void main(String[] args) {
        EnumSingleton enumSingleton = EnumSingleton.INSTANCE;
        EnumSingleton enumSingleton1 = EnumSingleton.INSTANCE;
        System.out.println(enumSingleton == enumSingleton1);
        enumSingleton.whateverMethod();
        enumSingleton1.whateverMethod();
    }

}
